package com.cqhilink.iot.jobstandardmanagement.dao.mapper;

import com.cqhilink.iot.jobstandardmanagement.facade.model.BootstrapSearchBean;
import com.cqhilink.iot.jobstandardmanagement.facade.model.Employee;
import com.cqhilink.iot.jobstandardmanagement.facade.model.EmployeeCertificate;
import com.cqhilink.iot.jobstandardmanagement.facade.model.EmployeeCertificateVo;

import java.util.List;
import java.util.Map;

/**
 * 人员证书信息
 */
public interface EmployeeCertificateMapper {
    /**
     * 删除人员证书
     * @param employeeCertificateId
     * @return
     */
    int deleteByPrimaryKey(String employeeCertificateId);

    /**
     * 新增人员证书参数不能为空
     * @param record
     * @return
     */
    int insert(EmployeeCertificate record);

    /**
     * 新增人员证书参数可以为空
     * @param record
     * @return
     */
    int insertSelective(EmployeeCertificate record);

    /**
     * 通过Id查询人员证书信息
     * @param employeeCertificateId
     * @return
     */
    EmployeeCertificateVo selectByPrimaryKey(String employeeCertificateId);

    /**
     * 修改人员证书信息
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(EmployeeCertificate record);

    /**
     * 修改人员证书信息
     * @param record
     * @return
     */
    int updateByPrimaryKey(EmployeeCertificate record);

    /**
     * 查询人员证书信息
     * @param bootstrapSearchBean
     * @return
     */
    List<EmployeeCertificateVo> queryList(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 查询人员证书信息
     * @param bootstrapSearchBean
     * @return
     */
    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 修改人员证书信息
     * @param certificate
     * @return
     */
    int updateCertificate(Map certificate);

    /**
     * 修改人员证书信息
     * @param certificate
     * @return
     */
    int updateByemployee(Map certificate);
}